const app = getApp()
const util = require('../../../../utils/util.js');
const api = require('../../../../config/api.js');
Page({
  data: {
    //默认为闯关模式
    themeType: 2,//主题模式
    circleid: "",
    ordInterest:'',
  },
  onLoad: function (options) {
    var _this = this;
    _this.setData({
      circleid: options.circleid,
      logininfo: app.globalData.logininfo,
    })
  },
  //选择模式
  selectThemeType: function (e) {
    var _this = this
    var index = e.currentTarget.dataset.index;
    this.setData({
      themeType: index,
    })
  },
  //进入编辑主题
  gotoMakeTheme: function () {
    var _this = this
    var type = _this.data.themeType;
    var circleid = _this.data.circleid;
    wx.redirectTo({
      url: 'makeTheme/makeTheme?themeid=&o_type=create&circleid=' + circleid + '&type=' + type,
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
    wx.stopPullDownRefresh();
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    wx.stopPullDownRefresh();
  },
})